package com.jianli.business.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jianli.common.annotation.Excel;
import com.jianli.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 订单对象 t_order
 *
 * @author ruoyi
 * @date 2025-04-15
 */
@Data
@TableName(value = "t_order")
@EqualsAndHashCode(callSuper = true)
public class TOrder extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    /**
     * "订单编号"
     */
    @Excel(name = "订单编号")
    private String orderNo;
    /**
     * "用户Id"
     */
    @Excel(name = "用户Id")
    private String userId;
    /**
     * "姓名"
     */
    @Excel(name = "姓名")
    private String userName;
    /**
     * "身份证号"
     */
    @Excel(name = "身份证号")
    private String cardNo;
    /**
     * "金额"
     */
    @Excel(name = "金额")
    private BigDecimal totalPrice;
    /**
     * "订单状态"
     */
    @Excel(name = "订单状态")
    private String orderStatus;
    /**
     * "下单时间"
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "下单时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date orderTime;
    /**
     * "完成时间"
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "完成时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date finallyTime;
    /**
     * "取消时间"
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "取消时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date cancelTime;
    /**
     * "支付时间"
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date payTime;
    /**
     * "是否已经支付，1：已经支付过   0：，没有支付过"
     */
    @Excel(name = "是否已经支付，1：已经支付过   0：，没有支付过")
    private String isPayed;
    /**
     * "订单关闭原因 1-超时未支付 2-退款关闭 4-买家取消 15-已通过货到付款交易"
     */
    @Excel(name = "订单关闭原因 1-超时未支付 2-退款关闭 4-买家取消 15-已通过货到付款交易")
    private String closeType;
    /**
     * "订单标题"
     */
    @Excel(name = "订单标题")
    private String title;
    /**
     * "凭证图片"
     */
    @Excel(name = "凭证图片")
    private String image;

    /**
     * "支付方式"
     */
    @Excel(name = "支付方式")
    private String payType;



}
